Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.31-pr.231.dabd461Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.31-pr.231.dabd461"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.31-pr.231.dabd461"
}
}
Preview published to npm registry — try new features instantly! |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
The `^[a-z0-9_]+$` regex constraint was too restrictive — agents created via the AI builder can have names with uppercase, dashes, etc. This aligns the CLI with the apper-side change (base44-dev/apper#3610) so pull works for all existing agents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agent names are no longer restricted to [a-z0-9_], so we need to slugify them when creating/deleting local files on pull. The name inside the JSON remains the source of truth. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3ffc978 to
f25b70e
Compare
|
README check ran. 5 issue(s) found and applied: (1) Updated |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
README check ran. Found 3 issues and applied fixes: (1) Added missing 'connectors push' command, (2) Uncommented 'eject' command row, (3) Updated command descriptions to match code exactly. README.md has been updated in this branch (commit pending push). |
Note
Description
This PR removes strict agent name validation and adds filesystem-safe filename generation. Previously, the CLI only accepted lowercase alphanumeric names with underscores (
^[a-z0-9_]+$), but agents created via the AI builder can have names with uppercase letters, spaces, dashes, and other characters. This change allows any valid name while ensuring filesystem compatibility by converting names to safe slugs for file storage.Related Issue
Companion to base44-dev/apper#3610 (server-side change)
Type of Change
Changes Made
/^[a-z0-9_]+$/regex validation fromAgentConfigSchema- now allows any non-empty name (1-100 chars)toFileSlug()function to convert agent names to filesystem-safe filenames (lowercase, alphanumeric + underscores)writeAgents()to use slugified filenames when writing/deleting agent config filesgenerateAgentConfigContent()to remove outdated naming constraint noteTesting
npm test)Checklist
Additional Notes
Key change: Agent names can now include spaces, uppercase letters, and special characters (e.g., "My Custom Agent" or "GPT-4 Helper"), but will be stored as filesystem-safe filenames (e.g.,
my_custom_agent.jsonc,gpt_4_helper.jsonc). The validation now only prevents empty names and excessively long names (>100 chars).This ensures the CLI can work seamlessly with agents created through the AI builder while maintaining filesystem compatibility across all platforms.
🤖 Generated by Claude | 2026-02-15 14:32 UTC